DrillShape ScaleShape

Scales the drill shape by specified scaling factors in X and Y directions.

Overloads

public void ScaleShape(float scaleX, float scaleY)

 

Return value

void  

 

Parameters

float scaleX X scaling factor
float scaleY Y scaling factor

 

Example

Copy
bool pulsemode = false;
PointAndShootDrillShapePattern pointandShootPattern = new PointAndShootDrillShapePattern();
pointandShootPattern.UsePulseBurstMode = pulsemode;

// Create a Drill Pulse
DrillPulse pulse1 = new DrillPulse(2.5f, 2.5f, 5);

pointandShootPattern.AddDrillPulse(pulse1);

//Create a drill shape.
DrillShape drillShape = new DrillShape();
drillShape.SetPattern(pointandShootPattern);

//Add drill Points to the drill shape
drillShape.AddPointAndShootPoint(0, 0, 0);
drillShape.AddPointAndShootPoint(10, 10, 0);
drillShape.AddPointAndShootPoint(20, 20, 0);

// Add the Drill shape to vector image
vectorImage.AddDrill(drillShape);
GsiRectangle shapeBoundary = new GsiRectangle();

if (drillShape.DrillShapeBounday(shapeBoundary))
{
    drillShape.ScaleShape(0.5f, 0.5f);
}